{% extends "base.html" %}
{% block title %} 新用户注册 {% endblock %}
{% block content %}

<form class="form-horizontal form-pos-up" action="/signup" method="post">
      <legend>注册新用户</legend>
      <div class="alert hidden" id="hint">
            <button type="button" class="close"  onclick="closehint('#hint')" >&times;</button>
              <strong>非常抱歉,注册失败!</strong> 请重试.
      </div>
  <div class="control-group" id="unamediv">
    <label class="control-label" for="inputName">用户名:</label>
    <div class="controls">
      <input type="text" onfocus="clearitem('#erroruname', '#unamediv')" name="username" id="username" placeholder="请输入用户名" />
      <span class="hidden" id="erroruname"></span>
    </div>
  </div>
  <div class="control-group" id="passdiv">
    <label class="control-label" for="inputPass">登录密码:</label>
    <div class="controls">
      <input type="password" onfocus="clearitem('#errorpass', '#passdiv')" name="passwd" id="passwd" placeholder="请输入登录密码"/>
      <span class="hidden" id="errorpass"></span>
    </div>
  </div>
  <div class="control-group" id="checkdiv">
    <label class="control-label" for="inputPass">确认密码:</label>
    <div class="controls">
      <input type="password" onfocus="clearitem('#errorcpass', '#checkdiv')" name="checkpasswd" id="checkpasswd" placeholder="请确认登录密码"/>
      <span class="hidden" id="errorcpass"></span>
    </div>
</div>
  <div class="control-group" id="namediv">
    <label class="control-label" for="inputRealName">姓名:</label>
    <div class="controls">
      <input type="text" onfocus="clearitem('#errorname', '#namediv')" name="name" id="name" placeholder="请输入真实姓名" />
      <span class="hidden" id="errorname"></span>
    </div>
  </div>
  <div class="control-group" id="birthdiv">
    <label class="control-label" for="inputBirth">生日:</label>
    <div class="controls">
      <input class="Wdate" type="text" onclick="WdatePicker({position:{left:220,top:-180}})" name="birth" id="birth" />
      <span class="hidden" id="errorbirth"></span>
    </div>
  </div>
  <div class="control-group" id="teldiv">
    <label class="control-label" for="telephone">电话:</label>
    <div class="controls">
      <input type="text" onfocus="clearitem('#errortel', '#teldiv')"name="tel" id="tel" placeholder="请输入您的电话" />
      <span class="hidden" id="errortel"></span>
    </div>
  </div>
  <div class="control-group" id="postcodediv">
    <label class="control-label" for="postcode">邮编:</label>
    <div class="controls">
      <input type="text" name="postcode" id="postcode" />
      <span class="hidden" id="errorpostcode"></span>
    </div>
  </div>
  <div class="control-group" id="addrdiv">
    <label class="control-label" for="address">地址:</label>
    <div class="controls">
      <input type="text" onfocus="clearitem('#erroraddr', '#addrdiv')" name="addr" id="addr" placeholder="请输入您的地址"/>
      <span class="hidden" id="erroraddr"></span>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
        <button type="button" onclick="validate_signup()" class="btn btn-large btn-primary btn-large-left">同意协议并注册</button>
    </div>
  </div>


</form>

{% endblock %}
